package util

/**
  * Created by THINKPAD on 2017/11/9.
  */
object util {
  def three (a:Double) = {
    BigDecimal(a).setScale(3, BigDecimal.RoundingMode.HALF_UP).toDouble
  }
  def two (a:Double) = {
    BigDecimal(a).setScale(2, BigDecimal.RoundingMode.HALF_UP).toDouble
  }

}
